import React from 'react'
import '../tables.css'

const BasicTBody = props => {

    const {data,} = props

    const trTemplate = (
        <tr key={data.company}>
            <td>{data.company}</td>
            <td>{data.host1}</td>
            <td>{data.first}</td>
            <td>{data.guest1}</td>
            <td style={colorStyle(data.host1, data.host2)}>{data.host2}</td>
            <td>{data.current}</td>
            <td style={colorStyle(data.guest1, data.guest2)}>{data.guest2}</td>
        </tr>
    )

    return trTemplate
}

export default BasicTBody
